<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="${"$"}${"{"}basePath${"}"}" />
	</head>
	<body>

	

	<form action="${"$"}${"{"}basePath${"}"}admin/${model.currentPackageName}/${model.objName}/save.action" method="post">
		<#list model.modelFiled as modelField>
			<#if modelField== model.pk>
				<input type="hidden" name="${model.objName}.${modelField}" id="${modelField}" value="${"$"}${"{"}${model.objName}.${modelField}${"}"}"/><br/>
				<#else>
				<label for="${modelField}">${modelField}</label>
				<input type="text" name="${model.objName}.${modelField}" class="inputBg" id="${modelField}" value="${"$"}${"{"}${model.objName}.${modelField}${"}"}"/><br/>
			</#if>
		</#list>
		<#list model.manyTOoneList as manyTOone>
			<label for="${model.objName}.${manyTOone.objName}">${model.objName}.${manyTOone.objName}</label>
			<select name="${model.objName}.${manyTOone.objName}.${manyTOone.pk}" id="${model.objName}.${manyTOone.objName}">
				<option value="">请选择</option>
			<c:forEach items="${"$"}${"{"}${manyTOone.objName}List${"}"}" var="${manyTOone.objName}">
				<option value="${"$"}${"{"}${manyTOone.objName}.${manyTOone.pk}${"}"}">${"$"}${"{"}${manyTOone.objName}.${manyTOone.pk}${"}"}</option>
			</c:forEach>
			<select>
			<br/>
		</#list>
		<input type="submit" value="保存" class="bnt_blue_1"/> <input type="reset" value="重置" class="bnt_blue_1"/> 
	</form>

	</body>
</html>
